home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00078_Field_Chapter First Page Script SAMPLE.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
4KB
|
149 lines
--
-- PORTFOLIO multipart chapter script
-- "intro" page script
-- initialization and introduction
--
on enterFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gC1Button1, gC1Button2, gC1Button3
global gLocalSound
global gMusicOn, gCaptionOn
global gCurPath, gNavMode
global gControlPanel, gHotText
global gMap1Icon, gMap2Icon
-- Set up globals for this section
set gNavMode = "chapter"
-- make sure the control panel is current in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
-- Set up the sprite/channel relationship for this section
-- Chapter Sprites
set gC1Button1 = 5
set gC1Button2 = 6
set gC1Button3 = 7
set gFirstIcon = 8
-- these are set in the intro: gControlIcon, gNextIcon, gPreIcon, gHotText
if voidP("gLocalSound") then
set gLocalSound = FALSE
else
set gLocalSound = FALSE
end if
--puppetsprite gIndexIcon TRUE
--puppetsprite gControlIcon TRUE
puppetsprite gC1Button1 TRUE
puppetsprite gC1Button2 TRUE
puppetsprite gC1Button3 TRUE
puppetsprite gFirstIcon TRUE
set the member of sprite gC1Button1 to member "chapter1-button1-icon"
set the member of sprite gC1Button2 to member "chapter1-button2-icon"
set the member of sprite gC1Button3 to member "chapter1-button3-icon"
set the member of sprite gControlIcon to member "control-icon"
set the member of sprite gFirstIcon to member "first-icon"
if rollOver(gC1Button1) then
set the member of sprite gC1Button1 to member "chapter1-button1-icon-hot"
set the text of member "Message Text" to "Black & White Series..."
else if rollOver(gC1Button2) then
set the member of sprite gC1Button2 to member "chapter1-button2-icon-hot"
set the text of member "Message Text" to "Mud Series..."
else if rollOver(gC1Button3) then
set the member of sprite gC1Button3 to member "chapter1-button3-icon-hot"
set the text of member "Message Text" to "Israel Series..."
else if rollOver(gControlIcon) then
set the member of sprite gControlIcon to member "control-icon-hot"
set the text of member "Message Text" to "Reveal the control panel"
else if rollOver(gFirstIcon) then
set the member of sprite gFirstIcon to member "first-icon-hot"
set the text of member "Message Text" to "Return to the first page of this section..."
else
set the text of member "Message Text" to "Click on one of the names..."
end if
dontPassEvent
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon
global gButton1, gButton2, gButton3
global gTest
if gSoloMode = FALSE then
keepmusic
end if
set gTest = 1
go to the frame
dontPassEvent
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon, gControlIcon
global gC1Button1, gC1Button2, gC1Button3
set destination = "*"
if the ClickOn = gC1Button1 then
set destination = "C1P1"
end if
if the ClickOn = gC1Button2 then
set destination = "C1P2"
end if
if the ClickOn = gC1Button3 then
set destination = "C1P3"
end if
if the ClickOn = gFIrstIcon then
set destination = "first"
end if
if the ClickOn = gControlIcon then
openControlPanel
end if
if destination <> "*" then
puppetsprite gC1Button1 FALSE
puppetsprite gC1Button2 FALSE
puppetsprite gC1Button3 FALSE
puppetsprite gFirstIcon FALSE
if destination = "first" then
go to frame "intro"
else
go to frame destination
end if
else
-- alert "Internal Error: I don't know where to go." -- we can't get here!
end if
end MouseUp